package models

type UserRole struct {
	Id      int64 `json:"id" xorm:"pk autoincr"`
	UserId  int64 `json:"userId" xorm:"'userId' index not null"`
	RoleId  int64 `json:"roleId" xorm:"'roleId' index not null"`
	Created int64 `json:"created" xorm:"created"`
	Updated int64 `json:"updated" xorm:"updated"`
	Deleted int64 `json:"deleted" xorm:"deleted"`
}

func (UserRole) TableName() string {
	return "user_role"
}
